ul {
  margin: 0;
  padding: 0;
  background: rgb(0, 107, 121);
}

li {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: gold;
  display: block;
  padding: 10px;
  text-align: center;
}

a:hover {
  background: gold;
  color: rgb(0, 107, 121);
}

nav > ul {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
}

nav > ul li {
  flex: 1;
  min-width: 100px;
}

@media screen and (max-width: 576px) {
  nav::before {
    content: "";
    display: block;
    position: absolute;
    right: 0;
    width: 16px;
    height: 3px;
    border-top: 9px double blue;
    border-bottom: 3px solid blue;
    margin-right: 8px;
  }
  nav > ul {
    display: none;
  }

  nav:hover ul {
    display: flex;
    flex-direction: column;
    /* flex: 1 1 auto; */
    position: absolute;
    padding: 0;
    right: 0;
    margin-top: 16px;
    margin-right: 8px;
  }
}
